package com.ruoyi.project.basic.carinfo.service.impl;

import java.util.List;

import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.basic.carinfo.mapper.JcCheliangdaMapper;
import com.ruoyi.project.basic.carinfo.domain.JcCheliangda;
import com.ruoyi.project.basic.carinfo.service.IJcCheliangdaService;

/**
 * 车辆档案Service业务层处理
 * 
 * @author frank
 * @date 2024-08-24
 */
@Service
public class JcCheliangdaServiceImpl implements IJcCheliangdaService 
{
    @Autowired
    private JcCheliangdaMapper jcCheliangdaMapper;

    /**
     * 查询车辆档案
     * 
     * @param jcCheliangdaoid 车辆档案主键
     * @return 车辆档案
     */
    @Override
    public JcCheliangda selectJcCheliangdaByJcCheliangdaoid(String jcCheliangdaoid)
    {
        return jcCheliangdaMapper.selectJcCheliangdaByJcCheliangdaoid(jcCheliangdaoid);
    }

    /**
     * 查询车辆档案列表
     * 
     * @param jcCheliangda 车辆档案
     * @return 车辆档案
     */
    @Override
    @DataScope
    public List<JcCheliangda> selectJcCheliangdaList(JcCheliangda jcCheliangda)
    {
        return jcCheliangdaMapper.selectJcCheliangdaList(jcCheliangda);
    }

    /**
     * 新增车辆档案
     * 
     * @param jcCheliangda 车辆档案
     * @return 结果
     */
    @Override
    public int insertJcCheliangda(JcCheliangda jcCheliangda)
    {
        return jcCheliangdaMapper.insertJcCheliangda(jcCheliangda);
    }

    /**
     * 修改车辆档案
     * 
     * @param jcCheliangda 车辆档案
     * @return 结果
     */
    @Override
    public int updateJcCheliangda(JcCheliangda jcCheliangda)
    {
        return jcCheliangdaMapper.updateJcCheliangda(jcCheliangda);
    }

    /**
     * 批量删除车辆档案
     * 
     * @param jcCheliangdaoids 需要删除的车辆档案主键
     * @return 结果
     */
    @Override
    public int deleteJcCheliangdaByJcCheliangdaoids(String[] jcCheliangdaoids)
    {
        return jcCheliangdaMapper.deleteJcCheliangdaByJcCheliangdaoids(jcCheliangdaoids);
    }

    /**
     * 删除车辆档案信息
     * 
     * @param jcCheliangdaoid 车辆档案主键
     * @return 结果
     */
    @Override
    public int deleteJcCheliangdaByJcCheliangdaoid(String jcCheliangdaoid)
    {
        return jcCheliangdaMapper.deleteJcCheliangdaByJcCheliangdaoid(jcCheliangdaoid);
    }
}
